import Vue from 'vue'
import Router from 'vue-router'
import Login from "../views/user/login/Login";
import Work from "../views/work/Work";
import Pre_business from "../views/per_business/Pre_business";
import Org_business from "../views/org_business/Org_business";
import login_model from "../views/user/login/children/login_model";
import About from "../views/about/About";
import Register from "../views/user/register/Register";
import Home from "../views/home/Home";
import User from "../components/content/pre_business/User";
import Content from "../components/content/home/Content";
import SFrame from "../views/about/children/SFrame";
import OFrame from "../views/org_business/children/OFrame";
import WFrame from "../views/work/children/WFrame";
import PFrame from "../views/per_business/children/PFrame";
import Header from "../components/content/home/Header";


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path:'/home',
      component: Home
    },
    {
      path:'/login',
      component: Login,
      children: [
        {
          path: 'login_model',
          component: login_model
        },{
          path: 'register',
          component: Register
        }
      ]
    },
    {
      path: '/work',
      component: Work,
    },{
      path:'/pre_business',
      component: Pre_business
    },
    {
      path: '/org_business',
      component: Org_business,
    },
    {
      path: '/about',
      component: About
    },
    {
      path:'/user',
      component: User
    },
    {
      path:'/sframe',
      component:SFrame
    },
    {
      path:'/oframe',
      component:OFrame
    },
    {
      path:'/wframe',
      component:WFrame
    },
    {
      path:'/pframe',
      component:PFrame
    },

    {
      path:'/content',
      component:Content
    },
    {
      path:'/header',
      component:Header
    }
  ]
})
